home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9053 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  55 lines

  1. Path: syssrv.bb.bawue.de!framstag
  2. From: framstag@moep.bb.bawue.de (Ulli Horlacher)
  3. Newsgroups: vmsnet.misc,comp.lang.c
  4. Subject: Re: How to run a C program taking command line arguments on VMS
  5. Date: 7 Mar 1996 16:13:40 GMT
  6. Organization: Nugget Town: Computers, Networks and Women
  7. Message-ID: <4hn1vk$1hc@syssrv.bb.bawue.de>
  8. References: <4h1u5d$s5c@news.fsu.edu> <4h72pe$fce@news.fsu.edu> <313B21AC.45F5@uh.edu>
  9. NNTP-Posting-Host: moep.bb.bawue.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: slrn (0.8.6.1)
  14.  
  15. On Mon, 04 Mar 1996 11:00:28 -0600, David Bratton (DBratton@uh.edu) wrote:
  16. > As of VMS 6.2 you have another option. You can define the logical
  17. > DCL$PATH to point to the directory containing the executable.
  18.  
  19. Does this also work with lists of directories?
  20.  
  21.     $ define dcl$path sys$login,d1:[tools.exe],[]
  22.  
  23. This is a missing feature of VMS since version 1.0 :-)
  24.  
  25.  
  26. BTW, for those without V6.2, I have written long time ago a
  27. path-execution-emulation program called X.COM
  28.  
  29. From the help:
  30.  
  31.   X means eXecute:  execute a program, which can be found in a directory-
  32.                     searchlist, as defined by the global DCL-symbol PATH.
  33.  
  34.   The program can be a VMS-image (type *.EXE) or a DCL-commandfile (type
  35.   *.COM).
  36.   Wildcards * and % are allowed as well as optionally passed parameters.
  37.  
  38.   Examples:  $ X LOGIN                    ! does a @SYS$LOGIN:LOGIN.COM
  39.              $ X UUF* BLUB.BLAH BLUB.UUE  ! starts the image UUFIX.EXE and
  40.                                           ! passes 2 parameters
  41.  
  42.   You can extend the search-path with: PATH==PATH+",<DIRECTORY>"
  43.   Logicals are ok, too. eg:  PATH==PATH+",DD1:[FRAMSTAG.TOOLS],SYS$SCRATCH"
  44.  
  45.  
  46. If you are interested in this program, send me a mail.
  47.  
  48. -- 
  49. \ Ulli Horlacher   \ G=ulli;S=horlacher;OU=rus;P=uni-stuttgart;A=d400;C=de \ 
  50.  \ K÷nigsbergerstr 6 \ framstag@moep.bb.bawue.de \ ccc_horl@dulruu51.bitnet \
  51.   \ 71065 Sindelfingen \ germany!framstag \ psi%026245050260103::8::ccc_horl \
  52.    \ "Noch keine 30 und schon an die Nachwelt denken..." -  Kristian K÷hntopp \
  53.  
  54.